package com.java.common.pojo;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Emp entity. @author MyEclipse Persistence Tools
 */

public class Emp implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = -4080280733165823360L;
	private String empId;
	private Dept dept;
	private String password;
	private String name;
	private String phone;
	private String EMail;
	private String sex;
	private Date birthday;
	private String remark;
	private String delif;
	private Set<Room> rooms = new HashSet<Room>(0);
	private Set<Job> empJobs = new HashSet<Job>(0);
	private Set<Log> logs = new HashSet<Log>(0);
	private Set<Dept> depts = new HashSet<Dept>(0);

	// Constructors

	/** default constructor */
	public Emp() {
	}

	/** minimal constructor */
	public Emp(String empId) {
		this.empId = empId;
	}

	/** full constructor */
	public Emp(String empId, Dept dept, String password, String name,
			String phone, String EMail, String sex, Date birthday,
			String remark, String delif, Set<Room> rooms, Set<Job> empJobs, Set<Log> logs,
			Set<Dept> depts) {
		this.empId = empId;
		this.dept = dept;
		this.password = password;
		this.name = name;
		this.phone = phone;
		this.EMail = EMail;
		this.sex = sex;
		this.birthday = birthday;
		this.remark = remark;
		this.delif = delif;
		this.rooms = rooms;
		this.empJobs = empJobs;
		this.logs = logs;
		this.depts = depts;
	}

	// Property accessors

	public String getEmpId() {
		return this.empId;
	}

	public void setEmpId(String empId) {
		this.empId = empId;
	}

	public Dept getDept() {
		return this.dept;
	}

	public void setDept(Dept dept) {
		this.dept = dept;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEMail() {
		return this.EMail;
	}

	public void setEMail(String EMail) {
		this.EMail = EMail;
	}

	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public Date getBirthday() {
		return this.birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getDelif() {
		return this.delif;
	}

	public void setDelif(String delif) {
		this.delif = delif;
	}

	public Set<Room> getRooms() {
		return this.rooms;
	}

	public void setRooms(Set<Room> rooms) {
		this.rooms = rooms;
	}

	public Set<Job> getEmpJobs() {
		return this.empJobs;
	}

	public void setEmpJobs(Set<Job> empJobs) {
		this.empJobs = empJobs;
	}

	public Set<Log> getLogs() {
		return this.logs;
	}

	public void setLogs(Set<Log> logs) {
		this.logs = logs;
	}

	public Set<Dept> getDepts() {
		return this.depts;
	}

	public void setDepts(Set<Dept> depts) {
		this.depts = depts;
	}

}